package com.fss.shop.mapper;

import com.fss.home.domain.Product;
import com.fss.shop.domain.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper {
    Shop selectShopByUserId(@Param("userId") Long userId);
    List<Product> selectProductsByShopUserId(
            @Param("shopId") Long shopId,
            @Param("sortIndex") Integer sortIndex,
            @Param("priceMin") Double priceMin,
            @Param("priceMax") Double priceMax
    );
    int insertShop(Shop shop);
    int updateShop(Shop shop);
}
